package com.beta.em;

public enum GenderType {

	MALE("male","男"),FEMALE("female","女");
	
	private String value;
	private String cnValue;

	private GenderType(String value, String cnValue) {
		this.value = value;
		this.cnValue = cnValue;
	}
	public static String getCnValue(String value){
		for (GenderType gender:values()) {
			if(gender.value.equals(value)){
				return gender.cnValue;
			}
		}
		return null;
	}

	public String toCn() {
		return this.cnValue;
	}

	public String toString() {
		return this.value;
	}
}
